export default {
  common: {
    save: '保存',
    saveChanges:'编辑',
    cancel: '取消',
    restore: "恢复",
    delete: '删除',
    edit: '编辑',
    create: '创建',
    newRecord: '新建记录',
    search: '搜索',
    loading: '加载中...',
    pinned: '已固定',
    others: '其他',
    noCollectionsFound: '未找到集合。',
    backupName: "备份名称",
    restoreBackup: "恢复备份",
    backupWarning: "请谨慎操作，只使用可信任的备份！",
    backupExperimental: "备份恢复功能是实验性的，仅适用于基于UNIX的系统。",
    typeBackupName: "输入备份名称",
    toConfirm: "已确认",
    noRecordsFound: "未找到记录",
    clearFilters: "清除筛选",
    loadMore: "加载更多",
    toggleColumns: "切换列显示",
    reset: "重置",
    deleteSelected: "删除所选",
    avatar: "头像",
    email: "邮箱",
    password: "密码",
    setSelection: "确定",
    duplicate: "复制",
  },
  nav: {
    collections: '数据集',
    logs: '日志',
    settings: '设置',
    manageAdmins: '管理员设置',
  },
  auth: {
    login: '登录',
    logout: '退出登录',
    email: '邮箱',
    password: '密码',
    forgotPassword: '忘记密码',
  },
  // 保持英文的部分
  filter: {
    operators: {
      equals: 'equals',
      notEquals: 'not equals',
      like: 'like',
      greater: 'greater than',
      less: 'less than'
    }
  },
  collections: {
    product: '商品集',
    type:'分类集',
    tags: '标签集',
    users: '用户集'
  },
  admin: {
    loginTitle: "仅管理员登录",
    newAdmin: "新建管理员",
    editAdmin: "编辑管理员",
    deleteConfirm: "确定要删除选中的管理员吗？",
    deleteSuccess: "成功删除管理员。",
    noAdminsFound: "未找到管理员。",
    searchPlaceholder: "搜索条件或过滤器，如 email='test@example.com'",
    changePassword: "修改密码",
    unsavedChangesConfirm: "有未保存的更改，确定要关闭吗？"
  },
  logs: {
    title: "日志",
    settings: "日志设置",
    requestLog: "请求日志",
    empty: "暂无日志记录",
    level: "级别",
    message: "消息",
    data: "数据",
    created: "创建时间",
    clearAll: "清除全部",
    loadMore: "加载更多",
    downloadAsJson: "下载 JSON",
    includeAdminRequests: "包含管理员请求",
    filters: {
      searchPlaceholder: "搜索词或过滤条件，如 `level > 0 && data.auth = 'guest'`",
      title: "筛选",
      search: "搜索日志...",
      from: "开始时间",
      to: "结束时间",
      level: {
        info: "信息",
        warning: "警告",
        error: "错误"
      }
    }
  },
  records: {
    selectRecords: "选择{name}记录",
    selected: "已选择",
    selectionCount: "（已选{count}项，最多{max}项）",
    noSelectedRecords: "未选择任何记录",
    deleteConfirm: "确定要删除选中的{count}条记录吗？",
    deleteSuccess: "成功删除{count}条记录。",
    selectedCount: "已选择{count}条记录"
  }
} as const;
